@import url(./common-pc.less);
@import url(./footer.less);
body{
    font-size: 14px;
    min-width: 1226px;
    
}
header{
    border-bottom: 2px solid #ff6700;
    .header-container{
        width: 1226px;
        height: 100px;
        margin: 0 auto;
        // line-height: 100px;
        >a{
            margin-top: 26px;
            float: left;
            img{
                display: block;
                width: 48px;
                height: 48px;
            }
        }
        >h2{
            margin-top: 30px;
            float: left;
            color: #424242;
            font-size: 28px;
            font-weight: normal;
            margin-left: 45px;
        }
        .header-notice{
            float: left;
            color: #757575;
            margin-top: 48px;
            margin-left: 15px;
            font-size: 12px;
        }
        .cart-login{
            float: right;
            margin-top: 42px;
            height: 40px;
            color: #757575;
            font-size: 12px;
            >a{
                color: #757575;
                &:hover{
                    color: #ff6700;
                }
            }
        }
        .cart-mine{
            float: right;
            margin-top: 34px;
            height: 40px;
            position: relative;
            >span{
                float: left;
                font-size: 12px;
                height: 40px;
                color: #757575;
                line-height: 40px;
                text-align: center;
            }
            .cart-username{
                width: 110px;
                margin-right: 2px;
                cursor: pointer;
                .iconfont{
                    font-weight: bolder;
                }
            }
            .username-list{
                position: absolute;
                top: 40px;
                left: 0;
                width: 110px;
                color: #424242;
                background-color: #fff;
                box-shadow: 0 2px 10px rgb(0 0 0 / 15%);
                >li{
                    height: 30px;
                    line-height: 30px;
                    text-align: center;
                    font-size: 12px;
                    cursor: pointer;
                }
                >li:hover{
                    color: #ff6700;
                    background-color: #f5f5f5;
                }
            }
            .mylist{
                width: 80px;
                margin-left: 2px;
                cursor: pointer;
            }
            .mylist:hover{
                color: #ff6700;
            }
            .username:hover{
                color: #ff6700;
            }
        }
    }
}
main{
    background-color: #f5f5f5;
    padding-top: 40px;
    .main-container{
        width: 1226px;
        margin: 0 auto;
        .empty-cart{
            height: 273px;
            padding-left: 558px;
            margin: 65px 0 130px;
            background: url(https://cdn.cnbj1.fds.api.mi-img.com/staticsfile/cart/cart-empty.png) no-repeat 124px 0;
            color: #b0b0b0;
            overflow: hidden;
            >h2{
                margin-top: 70px;
                font-size: 36px;
                font-weight: bolder;
            }
            >a{
                display: block;
                width: 170px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                color: #fff;
                background-color: #ff6700;
                margin-top: 15px;
                transition: all .5s;
            }
            >a:hover{
                background-color: rgb(242, 88, 7);
            }
        }
        .shopping-cart{
            .shopping-checkbox{
                float: left;
                position: relative;
                width: 18px;
                height: 18px;
                border: 1px solid #e0e0e0;
                color: #757575;
                margin-top: 26px;
                cursor: pointer;
                .iconfont{
                    font-size: 24px;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                    z-index: 10;
                    color: #ff6700;
                }
            }
            
            .shopping-checkbox:hover{
                >span:last-of-type{
                    opacity: 1;
                }
            }
            .shopping-header{
                height: 70px;
                line-height: 70px;
                padding-left: 20px;
                background-color: #fff;
                >p{
                    float: left;
                    &:first-of-type{
                        width: 50px;
                        margin: 0 10px;
                    }
                    &:nth-of-type(2){
                        width: 380px;
                        margin-left: 120px;
                    }
                    &:nth-of-type(3){
                        width: 158px;
                        text-align: center;
                    }
                    &:nth-of-type(4){
                        width: 150px;
                        text-align: center;
                    }
                    &:nth-of-type(5){
                        width: 201px;
                        text-align: center;
                    }
                    &:nth-of-type(6){
                        width: 80px;
                        text-align: center;
                    }
                }
            }
            .shopping-product{
                height: 116px;
                line-height: 70px;
                padding: 15px 0 15px 20px;
                border-top: 1px solid #e0e0e0;
                background-color: #fff;
                .check-box-single{
                    margin-top: 35px !important;
                }
                >div:not(:first-of-type){
                    float: left;
                    height: 86px;
                    line-height: 86px;
                }
                .product-img{
                    float: left;
                    width: 80px;
                    height: 80px;
                    margin: 0 30px 0 60px;
                }
                .product-name{
                    width: 380px;
                    margin-left: 20px;
                    font-size: 18px;
                    cursor: pointer;
                    float: left;
                    height: 86px;
                    line-height: 86px;
                    overflow: hidden;
                    text-overflow:ellipsis;
                    white-space: nowrap;
                }
                .product-price{
                    width: 158px;
                    text-align: center;
                    font-size: 16px;
                }
                .product-num{
                    width: 150px;
                    align-items: center;
                    display: flex;
                    >div{
                        display: flex;
                        align-items: center;
                        border: 1px solid #e0e0e0;
                        height: 40px;
                        line-height: 38px;
                        text-align: center;
                        >div{
                            width: 38px;
                            height: 38px;
                            cursor: pointer;
                            font-size: 20px;
                        }
                        >span{
                            width: 72px;
                            height: 38px;
                            border: none;
                            font-size: 16px;
                        }
                    }
                }
                .product-sum{
                    width: 201px;
                    font-size: 16px;
                    color: #ff6700;
                    text-align: center;
                }
                .product-del{
                    width: 80px;
                    >span{
                        display: block;
                        margin: 30px auto 0;
                        width: 24px;
                        height: 24px;
                        border-radius: 50%;
                        text-align: center;
                        cursor: pointer;
                        line-height: 24px;
                        transition: all 0.4s;
                        &:hover{
                            color: #fff;
                            background-color: red;
                        }
                    }
                }
            }
            .shopping-footer{
                margin-top: 20px;
                background-color: #fff;
                height: 50px;
                padding-left: 20px;
                line-height: 50px;
                >span{
                    float: left;
                    color: #757575;
                    &:first-of-type{
                        cursor: pointer;
                        &:hover{
                            color: #ff6700;
                        }
                    }
                    &:nth-of-type(2){
                        margin: 0 15px;
                        color: #e0e0e0;
                    }
                    &:last-of-type{
                        span{
                            color: #ff6700;
                        }
                    }
                }
                >div{
                    float: right;
                    &:first-of-type{
                        margin-left: 50px;
                        width: 200px;
                        height: 48px;
                        line-height: 48px;
                        font-size: 18px;
                        text-align: center;
                        background-color: #ff6700;
                        color: #fff;
                        cursor: pointer;
                        &:hover{
                            background-color: rgb(242, 88, 7);
                        }
                    }
                    &:last-of-type{
                        color: #ff6700;
                        line-height: 40px;
                        >span{
                            font-size: 30px;
                        }
                    }
                }
            }
        }
    }
}
section{
    padding: 40px 0;
    .section-container{
        width: 1254px;
        margin: 0 auto;
        h2{
            position: relative;
            height: 50px;
            font-size: 30px;
            font-weight: 400;
            color: #757575;
            border-top: 1px solid #e0e0e0;
            span{
                position: absolute;
                top: -20px;
                left: 372px;
                height: 40px;
                width: 482px;
                line-height: 40px;
                text-align: center;
                display: block;
                background-color: #f5f5f5;
            }
        }
        .section-box{
            width: 234px;
            height: 300px;
            background-color: #fff;
            overflow: hidden;
            position: relative;
            float: left;
            margin: 0 0 14px 14px;
            >a{
                display: block;
                padding-top: 40px;
                text-align: center;
                >img{
                    display: block;
                    width: 140px;
                    height: 140px;
                    margin: 0 auto 20px;
                }
                .price{
                    color: #ff6700;
                    margin: 10px 0;
                }
                .people{
                    color: #757575;
                }
                .intocart{
                    position: absolute;
                    bottom: -60px;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 120px;
                    height: 30px;
                    line-height: 30px;
                    font-size: 12px;
                    border: 1px solid #ff6700;
                    color: #ff6700;
                    cursor: pointer;
                    transition: all .4s;
                    background-color: #fff;
                }
                .intocart:hover{
                    color: #fff;
                    background-color: #ff6700;
                }
            }
        }
    }
}